<?php

include_once 'mp3.class.php';

$mesMp3[] = new Mp3("3 Y'a de la joie", "Charles Trenet");
$mesMp3[] = new Mp3("2 La pluie", "Claude Nougaro");
$mesMp3[] = new Mp3("1  Gaston y'a le telefon qui son", "Nino Ferrer");

usort($mesMp3, array("mp3", "compareToArtiste"));

foreach ($mesMp3 as $unMp3){
    echo $unMp3."\n";
}

?>
